package io.github.yotta.logger.message.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yotta
 * @date 2023/4/14 8:15
 */
public class LogOperationDataMessage implements Serializable {

    /**
     * 应用的名字
     */
    @Getter
    @Setter
    private String application;
    @Getter
    @Setter
    private String tenantId;

    /**
     * 业务id
     */
    @Getter
    @Setter
    private String bizId;

    /**
     * 当前操作的名字
     */
    @Getter
    @Setter
    private String name;

    /**
     * 当前操作的分组（业务分组）
     */
    @Getter
    @Setter
    private String model;

    @Getter
    @Setter
    private String requestJson;

    @Getter
    @Setter
    private String responseJson;

    /**
     * 当前操作发生时间
     */
    @Getter
    @Setter
    private LocalDateTime occurTime;

    /**
     * 当前操作人id
     */
    @Getter
    @Setter
    private String operatorId;

    /**
     * 当前操作人名字
     */
    @Getter
    @Setter
    private String operatorName;

    @Getter
    @Setter
    private Boolean isSuccess;

    @Getter
    @Setter
    private String message;

    @Getter
    @Setter
    private Map<String, String> extra = new HashMap<>();


}
